package mlz.e_lock;

public class DemoTest {
    public static void main(String[] args) {
        Resource r = new Resource();
        Producer p = new Producer(r);
        Consumer c = new Consumer(r);

        //启动线程
        p.start();
        c.start();
    }
}
